package cn.sxt.shop.back.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.sxt.shop.common.controller.BaseController;
import cn.sxt.shop.common.util.PageInfoUtil;
import cn.sxt.shop.users.pojo.AAdmins;
import cn.sxt.shop.users.service.IUsersService;
@Controller
public class NoLoginController extends BaseController {
	
	@Resource
	private IUsersService usersService ;

	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest request){
		PageInfoUtil pageInfoUtil = new PageInfoUtil() ; 
		Map<String, Object> condMap = new HashMap<String,Object>();
		List<AAdmins> adminsList = this.usersService.findListAdminsService(pageInfoUtil, condMap);
		request.setAttribute("adminsList",adminsList);
		return "/back/adminsList";
	}
}
